<!--  -->
<template>
  <div>
        <v-title :text="'群体分析'"/>
      <el-input
        placeholder="请输入标签ID"
        clearable
        v-model="label_ids"
      >
        <el-button
          slot="append"
          icon="el-icon-search"
          @click="turnOn"
        ></el-button>
      </el-input>
    <groupAnalyze :label_ids="label_ids==''?[]:label_ids.split(',')" :key="turn_on"></groupAnalyze>
  </div>
</template>

<script>
var echarts = require('echarts');
require('echarts-wordcloud');
import ECharts from "vue-echarts";
import "echarts/lib/chart/bar";
import "echarts/lib/component/legend";
import "echarts/lib/component/tooltip";
import "echarts-wordcloud";
import groupCharts from "./GroupCharts";
import GroupAnalyze from "./GroupAnalyze";
import Title from '@/components/Title/Title'
import Subtitle from '@/components/Title/Subtitle'

export default {
  data() {
    return {
      label_ids: "",
      turn_on:false,
    }
  },
  methods: {
    turnOn(){
      this.turn_on=true
    }
  },
  components: {
    "groupCharts": groupCharts,
    "groupAnalyze": GroupAnalyze,
        "v-title": Title,
    "v-subtitle": Subtitle,
  },
//生命周期 - 创建完成（访问当前this实例）
  created() {

  },
//生命周期 - 挂载完成（访问DOM元素）
  mounted() {
  },
}
</script>
<style scoped>
/* @import url(); 引入css类 */

</style>
